DRAW
LDRAW

Syntax: DRAW x1,y1 TO x2,y2 ,colour (Fast PLOT/DRAW Toolkit)
   and: DRAW  [#ch,] x2,y2          (DIY Toolkit)
   and: LDRAW x1,y1 TO x2,y2,colour
Location: Fast PLOT/DRAW Toolkit and DIY Toolkit (DRAW)
          HCO (LDRAW)

These commands draw a line in absolute co-ordinates on the screen.

The Fast PLOT/DRAW toolkit ignores any windows and window attributes.
x1 and x2 range from 0 to 511, y1 and y2 from 0 to 255.
This version uses the screen base address defined with SCRBASE.

The range for the colour parameter is 0..7.

The DIY Toolkit version draws the line with reference to the specified window channel (if any - default #1).

The line is drawn from the last point plotted with the PLOT command from the same toolkit, to the point specified by x2,y2.

This is quicker than using the SuperBASIC LINE command and unlike other similar commands, it will support the current INK colour and OVER mode.

The main limitation on this command is that the line must appear fully within the specified window, so x2 and y2 cannot exceed the width or height of the specified window (in pixels) nor be less than zero.

LDRAW is the same as the first variant of DRAW, except that it uses a different rule for the colour - see SET.

CROSS-REFERENCE:
PLOT plots a pixel, SCLR clears the screen and REFRESH makes the screen pointed to by SCRBASE visible.
See also DOTLIN.
